<div class="left">
<?php if(Article::model()->getPreviewNews($this->id)):?>
	前一篇：<?php echo CHtml::link(UtilTools::strSlice(Article::model()->getPreviewNews($this->id)->arc_title,0,$this->length),array('view','id'=>Article::model()->getPreviewNews($this->id)->arc_id));?>
<?php else:?>
	已经是第一篇了！
<?php endif;?>
</div>


<div class="right">
	<?php if(Article::model()->getNextNews($this->id)):?>
		后一篇：<?php echo CHtml::link(UtilTools::strSlice(Article::model()->getNextNews($this->id)->arc_title,0,$this->length),array('view','id'=>Article::model()->getNextNews($this->id)->arc_id));?>
	<?php else:?>
		已经是最后一篇了，没有了！
	<?php endif;?>
</div>